package com.example.server.web.controller;


import com.example.server.web.domain.Question;
import com.example.server.web.domain.RespBean;
import com.example.server.web.service.QuestionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 作者
 * @since 2023-04-23
 */
@RestController
@RequestMapping("/question")
// @Api(tags = {"问题接口"})
public class QuestionController {
    /*@Autowired
    public QuestionService questionService;

    @ApiOperation("(可批量)删除问卷中的问题")
    @PostMapping("/deletes")
    public RespBean delete(@RequestBody List<Long> ids){
        questionService.delete(ids);
        return RespBean.success("删除成功");
    }

    @ApiOperation("修改问卷中的问题")
    @PostMapping("/modify")
    public RespBean modify(@RequestBody Question question){
        questionService.modify(question);
        return RespBean.success("修改成功");
    }

    @ApiOperation("增加问卷中的问题")
    @PostMapping("/add")
    public RespBean add(@RequestBody Question question){
        questionService.add(question);
        return RespBean.success("增加成功");
    }*/
}
